<?php

require_once dirname(__FILE__) . '/../../Domain51UnitTest.config.php';
require_once 'Domain51/Util/String.php';

class Domain51_Util_StringTest extends PHPUnit_Framework_TestCase
{
    public function testCanReturnSpecificCharacterByAnAsciiInteger() {
        $random = rand(100, 200);
        
        $string = new Domain51_Util_String();
        $return = $string->charFromInt($random);
        
        $expected = chr($random);
        $this->assertSame($expected, $return);
    }
}

?>